/*
 * @Author: sunzhijun 
 * @Date: 2019-05-28 14:00:40 
 * @Last Modified by: sunzhijun
 * @Last Modified time: 2019-05-28 14:03:10
 */
import {hrAjax as ajax} from 'src/hrpub/common/utils/utils';

/**
 * @param nodeKey 合同：contract 协议：agreement
 * @param opFlag 操作标示 edit(修改),delete(删除),effect(生效),attachment(附件)
 * @param billPks  合同主键：pk_psndoc_sub   协议主键：pk_agreement
 * @param callback 回调方法
 * @memberof handdleCheckedData 编辑前校验数据
 */
export default function handdleCheckedData(billPks, opFlag, nodeKey, callback){
    ajax({
        url: '/nccloud/hrcm/agreement/CheckDataPermissionAction.do',
        data: {
            billPks: billPks,
            opFlag: opFlag,
            nodeKey: nodeKey
        },
        success: (res)=>{
            callback && callback();
        }
    })
}